package com.power.sifa.approve.api;

import com.plf.common.domain.ResponseDTO;
import com.power.sifa.approve.model.Apl_typical_enum;
import com.power.sifa.approve.model.pageInfo.Apl_typical_enumPageInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 *  典型案件分类标签表 Feign
 */
public interface IApl_typical_enumFeign {

    /**
     * 典型案件分类标签表分页列表
     */
    @PostMapping("/apl_typical_enum/list")
    ResponseDTO list(@RequestBody Apl_typical_enumPageInfo apl_typical_enumPageInfo);


    @PostMapping("/apl_typical_enum/listAll")
    ResponseDTO listAll();

    /**
    * 查看典型案件分类标签表
    */
    @GetMapping("/apl_typical_enum/view")
    ResponseDTO view(@RequestParam("id") Integer id);

    /**
    * 删除典型案件分类标签表
    */
    @PostMapping("/apl_typical_enum/delete")
    ResponseDTO delete(@RequestParam("id") Integer id);

    ///**
    // * 查看典型案件分类标签表 复合主键使用
    // */
    //@PostMapping("/apl_typical_enum/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Apl_typical_enum.Apl_typical_enumPK pk);

    /**
     * 修改或保存典型案件分类标签表
     */
    @PostMapping("/apl_typical_enum/save")
    ResponseDTO save(@RequestBody Apl_typical_enum apl_typical_enum);


    /**
     * 修改或保存典型案件分类标签表
     */
    @PostMapping("/apl_typical_enum/saveList")
    ResponseDTO saveList(@RequestBody List<String> enums);

    ///**
    // * 删除典型案件分类标签表 复合主键使用
    // */
    //@PostMapping("/apl_typical_enum/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Apl_typical_enum.Apl_typical_enumPK pk);
    
    /**
     * 批量删除典型案件分类标签表
     */
    @PostMapping("/apl_typical_enum/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/apl_typical_enum/output")
    void output(HttpServletResponse response, @RequestBody Apl_typical_enumPageInfo apl_typical_enumPageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/apl_typical_enum/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/apl_typical_enum/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;
    
}
